home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb.new / gdb-4.0 / include / sys / h-hp9000.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-24  |  1.4 KB  |  69 lines

  1. #include <fcntl.h>
  2. #include <errno.h>
  3. #include <stdio.h>
  4. #include <sys/types.h>
  5. #include <sys/stat.h>
  6. #include <ctype.h>
  7. #include <string.h>
  8. #include <sys/file.h>
  9. #ifndef O_ACCMODE
  10. #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
  11. #endif
  12. #define SEEK_SET 0
  13. #define SEEK_CUR 1
  14.  
  15. /*
  16.  * Some things that need to be defined in order to make code written for
  17.  * BSD Unix compile under System V ("USG") Unix.  This file should be
  18.  * conditionally included in the source.
  19.  */
  20.  
  21. #include <memory.h>
  22. #define bcmp(b1,b2,len)        memcmp(b1,b2,len)
  23. #define bcopy(src,dst,len)    memcpy(dst,src,len)
  24. #define bzero(s,n)        memset(s,0,n)
  25.  
  26. static int
  27. rename(from, to)
  28. {
  29.   unlink(to);
  30.   return(link(from, to));
  31. }
  32.  
  33. /*
  34.  * Might not need these. Leave them out for now.
  35.  *
  36. #include <string.h>
  37. #define index(s,c)        strchr(s,c)
  38. #define rindex(s,c)        strrchr(s,c)
  39.  
  40. #ifdef SEEK_SET
  41. #    ifndef L_SET
  42. #        define L_SET SEEK_SET
  43. #    endif
  44. # endif
  45.  
  46. #ifdef SEEK_CUR
  47. #    ifndef L_INCR
  48. #        define L_INCR SEEK_CUR
  49. #    endif
  50. # endif
  51.  */
  52.  
  53. /* EXACT TYPES */
  54. typedef char int8e_type;
  55. typedef unsigned char uint8e_type;
  56. typedef short int16e_type;
  57. typedef unsigned short uint16e_type;
  58. typedef int int32e_type;
  59. typedef unsigned int uint32e_type;
  60.  
  61. /* CORRECT SIZE OR GREATER */
  62. typedef char int8_type;
  63. typedef unsigned char uint8_type;
  64. typedef short int16_type;
  65. typedef unsigned short uint16_type;
  66. typedef int int32_type;
  67. typedef unsigned int uint32_type;
  68.  
  69.